// src/store/modules/demo.js

const demo = {
    namespaced: true, // 必须开启命名空间，推荐最佳实践

    state: {
        counter: 0
    },

    mutations: {
        increment(state) {
            state.counter++
        }
    }
}

export default demo;